import React from 'react'
import { useTranslation } from 'react-i18next';
import '../../i18n/zhongying'
import { Button } from 'antd';
function Index() {
  const { t, i18n } = useTranslation();
  const change=()=>{
    i18n.changeLanguage(i18n.language==='zh'?'en':'zh')
  }
  return (
    <div>
      <h1>{t('hellow')}</h1>
      <Button onClick={change}>{i18n.language==='zh'?'中':'英'}</Button>
      <h2>这是第二个分支</h2>
      <h2>分支合并</h2>
    </div>
  )
}

export default Index
